/*
 * @Author: Soulmate
 * @Date: 2023-09-15 14:59:15
 * @LastEditTime: 2023-09-15 15:04:03
 * @LastEditors: Soulmate
 * @Description: 
 * @FilePath: \ruoyi-ui-vue3\src\mockProdServer.ts
 * 版权声明
 */
import { createProdMockServer } from "vite-plugin-mock/es/createProdMockServer";

const modules: Record<string, any> = import.meta.glob("../mock/*.ts", {
  eager: true
});
const mockModules = [];
console.log(modules)
Object.keys(modules).forEach(key => {
  mockModules.push(...modules[key].default);
});

export function setupProdMockServer() {
  createProdMockServer(mockModules);
}
